package com.erji.common.exception;

public enum DefaultErrorObject implements IError {

    OK(200, "操作成功"),
    FORBIDDEN(403, "权限不足"),
    SYSTEM_SERVER_ERROR(500, "系统错误"),
    ;

    private Integer code;
    private String message;

    private DefaultErrorObject(Integer code, String message) {
        this.message = message;
        this.code = code;
    }

    public Integer code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }
}
